package com.zking.repository;

import com.zking.entity.Address;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IAddressRepository extends JpaRepository<Address, Integer> {
    List<Address> findByDeep(int deep);
    List<Address> findByParentId(int pid);
}
